home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / role / pinfocom_3_0.lha / Source / amiga_data.h < prev    next >
C/C++ Source or Header  |  1992-10-22  |  5KB  |  259 lines

  1. /* amiga_data.h
  2.  *
  3.  *  ``pinfocom'' -- a portable Infocom Inc. data file interpreter.
  4.  *  Copyright (C) 1987-1992  InfoTaskForce
  5.  *
  6.  *  This program is free software; you can redistribute it and/or modify
  7.  *  it under the terms of the GNU General Public License as published by
  8.  *  the Free Software Foundation; either version 2 of the License, or
  9.  *  (at your option) any later version.
  10.  *
  11.  *  This program is distributed in the hope that it will be useful,
  12.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *  GNU General Public License for more details.
  15.  *
  16.  *  You should have received a copy of the GNU General Public License
  17.  *  along with this program; see the file COPYING.  If not, write to the
  18.  *  Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. /*
  22.  * $Header: RCS/amiga_data.h,v 3.0 1992/10/21 16:56:19 pds Stab $
  23.  */
  24.  
  25.     /* Clipboard support data. */
  26.  
  27. extern struct IFFHandle        *ClipHandle;
  28.  
  29. extern STRPTR             ClipBuffer,
  30.                  ClipIndex;
  31.  
  32. extern LONG             ClipSize,
  33.                  ClipLength;
  34.  
  35. extern Bool             ClipInput;
  36.  
  37.     /* Global library pointers, don't touch! */
  38.  
  39. extern struct ExecBase        *SysBase;
  40.  
  41. extern struct IntuitionBase    *IntuitionBase;
  42. extern struct GfxBase        *GfxBase;
  43.  
  44. extern struct Library        *WorkbenchBase,
  45.                 *DiskfontBase,
  46.                 *IFFParseBase,
  47.                 *GadToolsBase,
  48.                 *UtilityBase,
  49.                 *IconBase,
  50.                 *AslBase;
  51.  
  52. extern struct Device        *ConsoleDevice;
  53.  
  54.     /* Workbench startup message. */
  55.  
  56. extern struct WBStartup        *WBenchMsg;
  57.  
  58.     /* Screen and window data. */
  59.  
  60. extern struct Window        *Window;
  61. extern struct Menu        *Menu;
  62. extern struct RastPort        *RPort;
  63.  
  64. extern struct Screen        *DefaultScreen,
  65.                 *Screen;
  66. extern APTR             VisualInfo;
  67. extern UBYTE             Depth;
  68.  
  69.     /* Default window title. */
  70.  
  71. extern TEXT             WindowTitle[AMIGADOS_NAME_LIMIT + 1];
  72.  
  73.     /* Global flags. */
  74.  
  75. extern Bool             UseCustomScreen,
  76.                  WindowIsActive,
  77.                  LibsOpened,
  78.                  NewOS;
  79.  
  80.     /* Console IO data. */
  81.  
  82. extern struct IOStdReq        *ConRequest;
  83. extern struct InputEvent    *InputEvent;
  84. extern STRPTR             InputEventBuffer;
  85.  
  86. extern LONG             CursorX,
  87.                  CursorY,
  88.                  SpaceWidth,
  89.                  LastCursorX,
  90.                  LastCursorY,
  91.                  OldCursorWidth,
  92.                  NewCursorWidth,
  93.                  DefaultCursorWidth;
  94.  
  95. extern int             MenuLockCount;
  96.  
  97. extern Bool             RedrawInputLine,
  98.                  CursorEnabled;
  99.  
  100.     /* Process and window tricks. */
  101.  
  102. extern struct Process        *ThisProcess;
  103. extern APTR             WindowPtr;
  104.  
  105.     /* Timer data. */
  106.  
  107. extern struct MsgPort        *TimePort;
  108. extern struct timerequest    *TimeRequest;
  109.  
  110.     /* Workbench appwindow support. */
  111.  
  112. extern struct MsgPort        *WorkbenchPort;
  113. extern struct AppWindow    *WorkbenchWindow;
  114.  
  115.     /* The name of the project to restore. */
  116.  
  117. extern TEXT             ProjectName[MAX_FILENAME_LENGTH];
  118.  
  119.     /* A temporary string buffer. */
  120.  
  121. extern TEXT             TempBuffer[BUFFER_LENGTH];
  122.  
  123.     /* Story file name. */
  124.  
  125. extern char            *StoryName;
  126.  
  127.     /* Story serial number. */
  128.  
  129. extern ULONG             StorySerial,
  130.                  StoryRelease,
  131.                  StoryIndex;
  132.  
  133.     /* Default story file name and file
  134.      * extension.
  135.      */
  136.  
  137. extern char            *StoryNames[],
  138.                 *StoryExtensions[];
  139.  
  140.     /* Two different fonts. */
  141.  
  142. extern struct TextFont        *PropFont,
  143.                 *FixedFont,
  144.                 *ThisFont;
  145.  
  146.     /* Disk font support. */
  147.  
  148. extern struct TextFont        *ListFont,
  149.                 *TextFont;
  150.  
  151. extern TEXT             ListFontName[MAXFONTPATH],
  152.                  TextFontName[MAXFONTPATH];
  153.  
  154. extern LONG             FontSize;
  155.  
  156. extern struct TextAttr         ListFontAttr,
  157.                  TextFontAttr;
  158.  
  159.     /* Text font dimensions. */
  160.  
  161. extern UWORD             TextFontWidth,
  162.                  TextFontHeight;
  163.  
  164.     /* Window dimensions. */
  165.  
  166. extern WORD             WindowWidth,
  167.                  OldWindowWidth,
  168.                  OldWindowHeight;
  169.  
  170.     /* Screen characteristics. */
  171.  
  172. extern LONG             ConNumLines,
  173.                  ConLinesPrinted,
  174.                  ConLineContext,
  175.                  ConLineIndent,
  176.                  ConLineMargin;
  177.  
  178.     /* Text and background pens. */
  179.  
  180. extern LONG             ConTextPen,
  181.                  ConBackPen;
  182.  
  183.     /* Fixed status window support. */
  184.  
  185. extern LONG             ConNumStatusLines;
  186. extern int             ConOutputWindow;
  187.  
  188.     /* History management. */
  189.  
  190. extern struct StringBuffer     HistoryBuffer[HISTORY_LINES];
  191. extern int             LastHistory;
  192.  
  193.     /* Function key support. */
  194.  
  195. extern struct StringBuffer     FunctionKeys[NUM_FKEYS];
  196.  
  197.     /* Fake input buffer. */
  198.  
  199. extern TEXT             InputBuffer[INPUT_LENGTH];
  200. extern STRPTR             InputIndex;
  201.  
  202.     /* Data to be located in chip-memory. */
  203.  
  204. extern UWORD            *ChipData;
  205.  
  206.     /* Pull-down menu definitions. */
  207.  
  208. extern struct NewMenu ConMenuConfig[NUM_MENUS];
  209.  
  210.     /* Stopwatch mouse pointer data. */
  211.  
  212. extern UWORD StopwatchData[(1 + STOPWATCH_HEIGHT + 1) * 2];
  213.  
  214.     /* File requester support. */
  215.  
  216. extern struct FileRequester    *GameFileRequest;
  217.  
  218.     /* Game file release and serial numbers. */
  219.  
  220. extern LONG             SerialNumbers[][3];
  221.  
  222.     /* Type 3 game titles. */
  223.  
  224. extern char            *Titles[NUM_GAMES];
  225.  
  226.     /* Type 3 game authors. */
  227.  
  228. extern char            *Authors[NUM_GAMES];
  229.  
  230.     /* Type 3 game levels. */
  231.  
  232. extern int             GameLevels[NUM_GAMES];
  233. extern char            *Levels[LEVEL_EXPERT + 1];
  234.  
  235.     /* Transcript file support. */
  236.  
  237. extern FILE            *ScriptFile;
  238. extern TEXT             ScriptFileName[MAX_FILENAME_LENGTH];
  239. extern int             ScriptWidth;
  240. extern Bool             ScriptAborted;
  241.  
  242.     /* Sound support. */
  243.  
  244. extern struct IOAudio        *SoundRequestLeft,
  245.                 *SoundRequestRight,
  246.                 *SoundControlRequest;
  247. extern struct MsgPort        *SoundPort;
  248.  
  249.     /* Sound file search path. */
  250.  
  251. extern char            *SoundName,
  252.                 *SoundPath;
  253.  
  254.     /* Sound file data. */
  255.  
  256. extern int             SoundNumber;
  257. extern APTR             SoundData;
  258. extern LONG             SoundLength;
  259.